from django.test import TestCase

# see: http://docs.djangoproject.com/en/1.1/topics/testing/

class DisplayTest(TestCase):
    def test_display_index(self):
        from django.test.client import Client
        response = Client().get('/display/')
        self.failUnlessEqual(200, response.status_code)

    def test_few_args(self):
        from django.test.client import Client
        response = Client().get('/display/1')
        self.failUnlessEqual(200, response.status_code)
        response = Client().get('/display/15')
        self.failUnlessEqual(200, response.status_code)
        response = Client().get('/display/234567')
        self.failUnlessEqual(200, response.status_code)


# __test__ = {"doctest": """
# Another way to test that 1 + 1 is equal to 2.
# >>> 1 + 1 == 2
# True
# """}

